<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$name} - powered by ydcms</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Min/?f=__STATIC__/default/css/bootstrap.css" />
</head>
<body>
<div class="container">
  <div class="nav-tabs">
    <h5> {$name} &nbsp; [<a href='{:U("post", array("diyid" => $diyid))}'>发布信息</a>] </h5>
  </div>
  <div class="cmain">
    <div class="ctitle">
      <h2>{$name}内容列表</h2>
    </div>
      <div class="table-responsive">
        <volist name='list' id='fields'>
          <table class='table table-hover table-bordered'>
          	<thead>
              <tr>
                <th width="20%">id</th>
                <td><div class="pull-left">{$fields.id}</div>
                  <div class="pull-right"><a href="{:U('view', array('diyid' => $diyid, 'id' => $fields['id']))}" target="_blank">详细...</a> &nbsp;</div></td>
              </tr>
              </thead>
            <tbody>
              <volist name='fieldlist' id='field'>
                <if condition="$fields[$key] neq ''">
                  <tr>
                    <th bgcolor='#ffffff'>{$field.comment}</th>
                    <td bgcolor='#ffffff'>{$fields[$field['name']]}</td>
                  </tr>
                </if>
              </volist>
              </tbody>
          </table>
          <hr />
        </volist>
        <table class='table' cellspacing="2">
          <tr>
            <td bgcolor="#ffffff">{$page}</td>
          </tr>
        </table>
      </div>
  </div>
</div>
</body>
</html>